package com.oa.dao;

import java.util.List;

import com.oa.entity.CheckResult;
import com.oa.entity.Users;
import com.oa.entity.Voucher;
import com.oa.entity.Voucherdetail;
import com.oa.entity.WorkFlow;

public interface VoucherDao {
	int insertVoucher(Voucher voucher);
	List<Voucher> selectVoucherByUser(int userid);
	List<Voucher> selectVoucherByState(int state);
	Voucher selectByid(int id);
	List<Voucherdetail> selectByVid(int vid);

	List<CheckResult> selectResultByVouId(int vouId);
	
	Users getCheckResultUser(int workflowId);
	int insertWorkFlow(WorkFlow wf);
	WorkFlow selectNewWf();
	int insertCheckResult(CheckResult ck);

}
